<?php

namespace app\mall\ui\form;

use app\mall\enum\YesNoEnum;

/**
 * 快递公司表表单
 */
class MallLogisticsCompanyForm
{
    public function name()
    {
        return [
            'type' => 'input',
            'title' => '快递公司名',
            'field' => 'name',
        ];
    }

    public function type()
    {
        return [
            'type' => 'input',
            'title' => '快递公司编号',
            'field' => 'type',
        ];
    }

    public function inx()
    {
        return [
            'type' => 'number',
            'title' => '排序',
            'field' => 'inx',
        ];
    }

    public function enable()
    {
        return [
            'type' => 'radio',
            'options' => YesNoEnum::toZhArrayForSelect(),
            'title' => '是否启用',
            'field' => 'enable',
        ];
    }
}